decide whether they are rational or not. If they are rational and of the form p/q