solve prob in html