If 10 g = 16, 100 g = 196, 4 g = 4 and 12 r = 5; 300 r = 101, 30 r = 11, then what is n if n g r = 9?