If a and b are rational numbers and following below find the value of a and b

image

image
image