My apologies: the latest homework contained a typographical error! Instead of $, problems 2 and 2 should have had $. This been corrected…