The mean of four numbers is 5 and the mean of another three numbers is…