Compare the two trees below. In both cases the goal is to have an application with two independent modules (frontend…