Teresa and Eva are walking home from school. They start out walking for 2 blocks and then running for 3 blocks and then repeating this pattern. If they walk 2 blocks in 4 minutes and run 3 blocks in 2 minutes, how long will it take them to go 18 blocks?