r varies jointly as x and y and inverse as q.​