Five students, P, Q, R, S and T stand in a line in some order and receive cookies and biscuits to eat. No student gets the same number of cookies or biscuits. The person first in the queue gets the least number of cookies. Number of cookies or biscuits received by each student is a natural number from 1 to 9 with each number appearing at least once. The total number of cookies is two more than the total number of biscuits distributed. R who was in the middle of the line received more goodies (cookies and biscuits put together) than everyone else. T receives 8 more cookies than biscuits. The person who is last in the queue received 10 items in all, while P receives only half as many totally. Q is after P but before S in the queue. Number of cookies Q receives is equal to the number of biscuits P receives. Q receives one more good than S and one less than R. Person second in the queue receives an odd number of biscuits and an odd number of cookies.
Who was 4th in the queue?
How many cookies did Q get?
If we know that S received more cookies than biscuits, then how many cookies did R receive?
If R received fewer cookies than S, how many cookies did S receive?
How many cookies were distributed in all?