One double answer is: What rule does your (unstated) textbook specify? And -- if different -- what do your teachers expect? We can't answer either from your post.
A longer answer is that several rules can be found, for example under the heading of percentile rank. I suggest as starting points two linked principles for good rules:
Low values and high values should be treated symmetrically and consistently. So the person with rank 1 out of 24 and the person with rank 24 of 24 would have percentile ranks that add to 100. A rank of 100/24 $\approx$ 4% for the lowest and of 2400/24 = 100% for the highest is not a procedure that satisfies this principle.
Specifically, and consistent with #1, if the number of marks is odd then the middlemost mark -- say for the person with rank 12 out of 23, with 11 marks higher and 11 marks lower -- is assigned percentile rank 50% as being the median mark.
Several rules satisfy these principles, including 100 $\times$ (rank $-$ 0.5) / sample size and 100 $\times$ rank / (sample size $+$ 1). In statistics, these details are sometimes discussed under the heading of plotting positions, jargon for the precise cumulative probabilities to be used on quantile plots (historically often called probability plots).
Those two rules return 77% and 76% respectively for rank 19 out of 24, rounding to the nearest integer. For large sample sizes, results will be close.
Nothing said yet about tied ranks, but it is hard to defend any procedure except the same mark being given the same rank, conventionally by averaging to preserve the sum of ranks. Hence marks 42, 56, 56, 56, 98 would have been ranked 1, 2, 3, 4, 5 had the 56s been slightly different, so are assigned ranks 1, 3, 3, 3, 5 given that (2 + 3 + 4) / 3 $=$ 3.
In reporting marks to students or anyone else, there may well be a polite convention of rounding up, but that's politics and psychology, not statistics.