Note: These are not necessarily the most efficient solutions but we hope they are the clearest.