It's a bit unclear how to interpret what the question means by "compass direction". According to Wikipedia, an "absolute bearing" on a compass is measured in the clockwise direction starting from North, in which case this answer would have an absolute bearing of $324.2^\circ$. Other systems of measuring with a compass require being specific about which cardinal direction one is measuring with respect to.
This is College Physics Answers with Shaun Dychko. We imagined that we start at the origin and walk 18 blocks to the west and then 25 blocks to the north. This vector A has length 18 meters and vector B has length 25 meters. The question is, what is our displacement? This vector R is the resultant connecting our starting point to our ending point and we're going to find its length and its direction. The direction will express as theta, a certain number of degrees north of west. The length of this resultant is the length of hypotenuse because this is a right triangle conveniently, and so we can take the x and y components of this resultant, and they are going to be vectors A and B respectively. The length of this resultant vector is the square root of its x-component squared plus its y-component squared. Then we substitute in A and B for those components. We have the link for the resultant as a square root of the length of A-squared plus length of B-squared. That's the square root of 18 meters squared plus 25 meters squared, which gives the length of 30.8 meters. The angle theta, we can get by using inverse tangent because we know the opposite leg of this right triangle and the adjacent leg. We take the inverse tangent of the opposite length divided by the adjacent length. Its inverse tangent of 25 meters vertical divided by 18 meters horizontal, which is 54.2 degrees. That's this angle in here, which is towards the north compared to west, so north of west. Our final answer then for the resultant vector is that we are 30.8 meters from the starting point at an angle of 54.2 degrees north of west.