Solution to Dilbert’s problems