<span>Fractions are numbers which can be represented in the form p/q, where p and q are WHOLE NUMBERS and q is not zero
Rational numbers are numbers which can be represented in the form p/q where p and q are INTEGERS and q is not zero
So your saying " all rational numbers are all numbers that can be represented as a fraction." is wrong.......
all fractions are rational numbers but NOT ALL rational numbers are fractions..</span>
See, please, suggested decision: When the line intersects the xy-plane, then parameter z=0, when does the xz - y=0 and when does yz, x=0. All the details are in attachment. If it's possible, check arithmetic part.