Stays Vs Points, I have done that a lot, while traveling with others on trips.
You can only get credit for one stay, and accumulate points for a maximum of 2 rooms per stay, as long as both rooms are in your name, and you pay for them with either cash or a credit card with your name. Again, make sure that your name is on both room reservations when you check in.
Therefore, to specifically answer your original question, you will get credit for only one stay and 900 points ($45 x 2).
Ghayas
------------------