Each passenger pays the basic rail (coach) fare and one single fare for the room upgrade. You should book for two and it'll show you the total price for both of you. Definitely make sure you like the other person, because you'll be cozy! Pay railfare once for each person, and pay once for the room like a hotel.