Ramu invested money in three different banks for 9 years, 15 years, and 18 years at 15%, 18% and 22(12)% simple interest respectively. If at the completion of the period, he got the same interest from all the three banks, find the ratio of his investments.