solved 102 using some linear algebra