solved probl. 19