Combining 2 images with sobel vertical and horizontal edge detector masks

Hi, I have applied a sobel edge detector to an image both horizontally and vertically but do not know how to combine the 2 images to show all of the edges. Help please?

More university homework?

The math section of the Image gradient wiki article should give you the answer.