2 words matching regular expressions cubes

2 words matching regular expressions  cubes