added total number of week var
added average var with math expression
added console.log for the answer