Ivan finished 4/5 of his math homework problems and all 3 questions for his science homework before dinner. If he finished a total of 43 problems before dinner, what is the total of math homework problems he was assigned?