what is the VB code for:

1) finding the greatest common factor between two numbers
2) finding the least common multiple between two numbers
3) solving the equation x ^ x + a = b for b when you know what a, b are