If both a and b are rational numbers, then find a and b from the following

If both a and b are rational numbers, then find a and b from the following.
image

image