Applies Bayes Rule with inputted probabilities, and outputs the Latex solution.