How are the equilibrium price and quantity affected when
(a) both demand and supply curves shift in the same direction?
(b) demand and supply curves shift in opposite directions?