Anahi bought a 500 pages book to write some notes on. In the first week, she wrote on 150 pages. In the second week, she wrote on 30% of the remaining pages. While continuing writing, she accidentally spilled coffee on the book and damaged 20 percent of the empty pages she was to write on. Calculate the total number of empty pages available for her to write on now.
If she bought a 500 pages book and wrote on 150 pages, the number of empty pages remaining is 500-150 = 
<gadget id="calculator">500-150</gadget>
<output>350</output>
350 pages.
She then wrote on 30% of the remaining empty pages on the second week, a total of 30/100*350 = 
<gadget id="calculator">30/100*350</gadget>
<output>105</output>
105 pages.
The number of remaining empty pages is 350-105 = 
<gadget id="calculator">350-105</gadget>
<output>245</output>
245 pages.
When she spilled coffee on the remaining empty pages, the number of damaged pages was 20/100*245 = 
<gadget id="calculator">20/100*245</gadget>
<output>49</output>
49.
The number of empty pages remaining that she could write on is 245-49 = 
<gadget id="calculator">245-49</gadget>
<output>196</output>
196 pages.

<result>196</result>