How to find rational numbers