Esmeralda works at a jewelry store. She needs to polish and pack some rings for a huge sale. After working for 4 hours the ratio of the number of rings that are ready to the number of rings that she still needs to pack is 4:9. After packing 135 more rings the ratio becomes 9:4. When Esmeralda finishes, how many rings will she have packed in total?