Given that there are two points a and B on the number axis, the distance between a and B is 1, and the distance between a and the origin is 3, then the number corresponding to point B is ()

Given that there are two points a and B on the number axis, the distance between a and B is 1, and the distance between a and the origin is 3, then the number corresponding to point B is ()

2 or 4