If the graph of #y=AB^x# passes through the points (2,3) and (5,81), then what is the value of B?