To express 5.371 as p/q.
We know, 5.371 has 3 decimal places. To remive decimal, we need to multiply by 1000 on the numerator.
Hence, 5.371 =( 5.317 * 1000) / 1000
Note. 1000x1000 = 1, and hence 5.317 * 1 = 5.317
Now, (5.317 * 1000 ) / 1000 = 5317 / 1000.
which is in p/ q form, p = 5317, q = 1000
Hence, 5.317 = 5317/ 1000