Let a,ba,b be fixed positive integers such that aa is not a perfect square and bb is squarefree, and let ω(b)ω(b) denote the number of distinct prime divisors of bb. Let (u1, v1)(u1, v1) denote the least solution of Pell equation u2−av2=1u2−av2=1. Further, for any positive integer nn, let un=αn+ˉαn2un=αn+ˉαn2 and vn=αn−ˉαn2√avn=αn−ˉαn2√a, where α=u1+v1√aα=u1+v1√a and ˉα=u1−v1√aˉα=u1−v1√a. In this paper, using the basic properties of Pell equations and some known results on binary quartic Diophantine equations, a necessary and sufficient condition for the system of equations (∗)x2−ay2=1(∗)x2−ay2=1 and y2−bz2=v21y2−bz2=v21 to have positive integer solutions (x,y,z)(x,y,z) is obtained. By this result, we prove that if (∗)(∗) has a positive integer solution (x,y,z)(x,y,z) for ω(b)≤2ω(b)≤2 or 33 according to 2∤b or not, then 4u21−δ=bg2 and (x,y,z)=(ur,vr,gv[r+12]), where g is a positive integer, δ=1 or 2 and r=2 or 3 according to 2∤b or not, [r+12] is the integer part of r+12, except for (a,b,x,y,z)=(24,2134,47525,9701,210)