The base of a triangle is half the base of a parallelogram having the same area as that of the triangle. The ratio of the corresponding heights of the triangle to the parallelogram will be
P and Q together can make a door in 12 days. They started the work together but after 8 days P left the work. The remaining work is completed by Q alone in 7 more days. In how many days can P alone complete the entire work?