Try to solve this (more solutions are possible) in a way that could be extended to higher dimensions.