The definition of round trip time in Stop and wait protocol or Sliding window protocols is author dependent. Let us go through them one by one.
Definition 1(More popular):
The total time from the moment we start transmission of a frame till we receive the acknowledgment of the respective frame.
Round Trip Time(RTT) = Transmission Time + 2*(Propagation Time)
Resources that follow this definition:
Tanenbaum : https://csc-knu.github.io/sys-prog/books/Andrew%20S.%20Tanenbaum%20-%20Computer%20Networks.pdf
(Page 233)

Definition 2:
The total time from the moment we place a frame completely into the link till we receive the acknowledgment of the respective frame.
Round Trip Time(RTT) = 2*(Propagation Time)
Resources that follow this definition:
1 . Foruzan : https://dpvipracollege.in/wp-content/uploads/2023/01/Data-Communications-and-Networking-By-Behrouz-A.Forouzan.pdf
(Page 322 | Example 11.4)

2. Washington University: https://courses.cs.washington.edu/courses/cse461/17au/lectures/reliable_data_transfer.pdf
(Page 9)

Conclusion:
So either or not we have to include the Transmission time in the Round trip time is completely author dependent. Although the definition 1 is more commonly used , some questions may require us to follow the definition 2 also. According to the following MIT question it is always better to check both.
Link : https://web.mit.edu/6.02/www/s2011/handouts/tutprobs/transport.html

Efficiency $=\dfrac{\text{Window Size$\times$ Transmission Time}}{\text{Round Trip Time(RTT)}}$
Transmission Time $=\dfrac{100\times 8\text{bits}}{20\text{ Kbps}}=40\ ms$
Propagation Time $=400\ ms$
Using definition 1:
Efficiency $=\dfrac{\text{Window Size$\times$ Transmission Time}}{\text{(Transmission Time + 2$\times$ Propagation Time)}}$
$=\dfrac{10\times 40}{(40+2\times 400)}=0.476$
Maximum Data Rate $=0.476\times 20\text{ Kbps}=9.52\text{ Kbps}$ (None of the options matches)
Using definition 2:
Efficiency $=\dfrac{\text{Window Size$\times$ Transmission Time}}{\text{2$\times$ Propagation Time}}$
$=\dfrac{10\times 40}{2\times 400}=0.5$
Maximum Data Rate $=0.5\times 20\text{ Kbps}=10\text{ Kbps}$ (Option B matches)
This question requires us to use definition 2.