You will get 10volt reading if the 15v and 5v rail have same common ground.
I suggest that you must learn Ohm' Law first. This is very important for those who want to learn electronics. Then try to assemble simple circuit as your mentioned above circuit. Then adjust or vary input or resistors...