Error Anaylsis: A student was asked to solve the perimeter f…