Answer:
James gets 12 hours of sleep.
Explanation:
James goes to sleep at 2 am and wakes up at 2 pm.
In order to calculate the amount of sleep he gets we need to subtract the time he went to sleep from the time he woke up:

So, James gets 12 hours of sleep.