Help me in solving FIZZBUZZ23_2 problem

My issue

i didnt get that why their is 125 in 2nd test case

My code

t=int(input())
n,x,d=map(int,input().split())
b=x*5 #10
a=n//b #50-10=5
print(a+b)

Problem Link: FIZZBUZZ23_2 Problem - CodeChef

cook your dish here

T=int(input())
for _ in range(T):
N,X,D=map(int,input().split())
buns_req=5*X
buns_last=N//buns_req
days = buns_last+D
print(days)