A 22-g ball is fired horizontally with initial speed vi toward a 98-g ball that is hanging motionless from a 1.1-m-long string. The balls undergo a head-on, perfectly elastic collision, after which the 100-g ball swings out to a maximum angle of θmax=45. What was vi?