user23697: I tried to find the answer and looked into theses questions on the site
The Third Precept and Prostitution
Buddhist attitude towards prostitution and non-procreative sexual activity
How is sexual misconduct explained in regards to the five precepts?
But I couldn't find the exact answer. So hope this is not a duplicate.
The explanation I have heard regarding the third precept is for men to avoid having sex with certain types (20 types) of women. So my understanding is that a married man going to a prostitute doesn't break the third precept. Please explain if this is correct or not.

user10100: DN 33 Commentary of 10 Akusalakammapathadasaka:
There are 2 kinds of 20 types of women, 8 by birth and 12 by agreement.
Breaking 3rd precept is for every man who having sex with 8 born-to-be-womens.
Breaking 3rd precept is for out-agreement-man who having sex with 12 in-agreement-women.
So, according to the question:

Can a married man have sex with a prostitute without breaking the third precept?

Yes, if his wife agrees with him to have sex with a prostitute.

user2282: 
The explanation I have heard regarding the third precept is for men to avoid having sex with certain types (20 types) of women. So my understanding is that a married man going to a prostitute doesn't break the third precept. Please explain if this is correct or not.

And that's the problem isn't it, the problem with seeing prostitutes is that there's no way for you, the client to verify with 100% certainty that the girl he's seeing does not fall into one of those 20 prohibited types! Quite often is the case that the girl is either under-age, or barely met the age requirement, already betrothed, married, or being victim of sex-trafficking industry and had to provide the service against her will, etc. So whenever there's uncertainty, it'd be better to err on the safe side by finding a legit. partner to engage in a legit relationship.

user254: Wikipedia's Prostitution in Thailand says,

Buddhism in Thailand is largely of the Theravada school, which is followed by 95 percent of the population. "While Buddhism regards the celibate monastic life as the higher ideal, it also recognizes the importance of marriage as a social institution." Thai Buddhism encourages adherence to the fundamental code of Buddhist ethics for the laity. The Five Precepts contains an admonishment against sexual misconduct, although what constitutes misconduct from the perspective of a particular school of Buddhism varies widely depending on the local culture. In the traditional Pāli Canon, the Sigālovāda Sutta contains a large section which advises men on honoring their wives by remaining faithful.
In the book Disposable People: New Slavery in the Global Economy, Kevin Bales argues that in Thai Buddhism, women are viewed as naturally inferior to men, and that Buddha told his disciples that women were "impure, carnal, and corrupting." This is also supported by the belief that women cannot attain enlightenment, although this view is disputed by other Buddhist scriptures such as the Vinaya Pitaka in the Pali Canon.  The current Dalai Lama has asserted that women can attain enlightenment and function as equals to men in spiritual matters, but his branch of Buddhism is not the one practised in Thailand, which has its own particular canon of beliefs. Bales also points to the fact that ten kinds of wives are outlined in the Vinaya, or rules for monks. In the rules, the first three categories are women who can be paid for their services. In present-day Thailand, this is expressed as tolerance of prostitution by married women. Sex with prostitutes is viewed by wives as "empty sex", and thus women may allow their husbands to have meaningless sex with prostitutes rather than find a new spouse.

See also what it says about Social views in its section for "Reasons for prevalence and toleration".
So my understanding is that a married man going to a prostitute doesn't break the third precept. Please explain if this is correct or not.
Apparently you are not the only person to argue that.
It's a doctrine that seems to me to be far from the ideal I read in Samajivina Sutta: Living in Tune (AN 4.55) -- or this answer about an ideal partner.
The question may be a false dichotomy -- arguing that if "sexual conduct" isn't with "one of the 20 types of women" then it is "not misconduct" and therefore "correct" -- I am not sure that's reliable advice.
MN 22 for example suggests that advice might be a 'heresy' that's contrary to the Buddha's doctrine. Of course that sutta (as with a lot of Buddhist doctrine) is principally for monks. But maybe the doctrine (the Dhamma in the suttas) is universally true, even if the discipline (the Vinaya) is only undertaken by monks.
But even among lay-people there are "faithful" followers of the Buddha -- your not being a monk allows marriage and so on, I'm not sure it's also meant to encourage seeking sex with prostitutes.

23697: <p>I tried to find the answer and looked into theses questions on the site</p>
<p><a href="https://buddhism.stackexchange.com/questions/5979/the-third-precept-and-prostitution">The Third Precept and Prostitution</a></p>
<p><a href="https://buddhism.stackexchange.com/questions/9307/buddhist-attitude-towards-prostitution-and-non-procreative-sexual-activity">Buddhist attitude towards prostitution and non-procreative sexual activity</a></p>
<p><a href="https://buddhism.stackexchange.com/questions/1367/how-is-sexual-misconduct-explained-in-regards-to-the-five-precepts">How is sexual misconduct explained in regards to the five precepts?</a></p>
<p>But I couldn't find the exact answer. So hope this is not a duplicate.</p>
<p>The explanation I have heard regarding the third precept is for men to avoid having sex with certain types (20 types) of women. So my understanding is that a married man going to a prostitute doesn't break the third precept. Please explain if this is correct or not.</p>
 10100: <p><a href="https://5000y.men/?rm.r.69.231...a%C3%B1%C3%B1e%20puris%C4%81" rel="nofollow noreferrer">DN 33 Commentary</a> of 10 Akusalakammapathadasaka:</p>
<p>There are 2 kinds of 20 types of women, 8 by birth and 12 by agreement.</p>
<p>Breaking 3rd precept is for every man who having sex with 8 born-to-be-womens.</p>
<p>Breaking 3rd precept is for out-agreement-man who having sex with 12 in-agreement-women.</p>
<p>So, according to the question:</p>
<blockquote>
<p>Can a married man have sex with a prostitute without breaking the third precept?</p>
</blockquote>
<p>Yes, if his wife agrees with him to have sex with a prostitute.</p>
 2282: <blockquote>
<p>The explanation I have heard regarding the third precept is for men to avoid having sex with certain types (20 types) of women. So my understanding is that a married man going to a prostitute doesn't break the third precept. Please explain if this is correct or not.</p>
</blockquote>
<p>And that's the problem isn't it, the problem with seeing prostitutes is that there's no way for you, the client to verify with 100% certainty that the girl he's seeing does not fall into one of those 20 prohibited types! Quite often is the case that the girl is either under-age, or barely met the age requirement, already betrothed, married, or being victim of sex-trafficking industry and had to provide the service against her will, etc. So whenever there's uncertainty, it'd be better to err on the safe side by finding a legit. partner to engage in a legit relationship.</p>
 254: <p>Wikipedia's <a href="https://en.wikipedia.org/wiki/Prostitution_in_Thailand#Religion" rel="nofollow noreferrer">Prostitution in Thailand</a> says,</p>
<blockquote>
<p>Buddhism in Thailand is largely of the Theravada school, which is followed by 95 percent of the population. &quot;While Buddhism regards the celibate monastic life as the higher ideal, it also recognizes the importance of marriage as a social institution.&quot; Thai Buddhism encourages adherence to the fundamental code of Buddhist ethics for the laity. The Five Precepts contains an admonishment against sexual misconduct, although <strong>what constitutes misconduct from the perspective of a particular school of Buddhism varies widely depending on the local culture</strong>. In the traditional Pāli Canon, the Sigālovāda Sutta contains a large section which advises men on honoring their wives by remaining faithful.</p>
<p>In the book <em>Disposable People: New Slavery in the Global Economy</em>, Kevin Bales argues that in Thai Buddhism, women are viewed as naturally inferior to men, and that Buddha told his disciples that women were &quot;impure, carnal, and corrupting.&quot; This is also supported by the belief that women cannot attain enlightenment, although this view is disputed by other Buddhist scriptures such as the Vinaya Pitaka in the Pali Canon.  The current Dalai Lama has asserted that women can attain enlightenment and function as equals to men in spiritual matters, but his branch of Buddhism is not the one practised in Thailand, which has its own particular canon of beliefs. Bales also points to the fact that ten kinds of wives are outlined in the Vinaya, or rules for monks. In the rules, the first three categories are women who can be paid for their services. In present-day Thailand, this is expressed as tolerance of prostitution by married women. Sex with prostitutes is viewed by wives as &quot;empty sex&quot;, and thus women may allow their husbands to have meaningless sex with prostitutes rather than find a new spouse.</p>
</blockquote>
<p>See also what it says about <a href="https://en.wikipedia.org/wiki/Prostitution_in_Thailand#Social_views" rel="nofollow noreferrer">Social views</a> in its section for &quot;Reasons for prevalence and toleration&quot;.</p>
<p><strong>So my understanding is that a married man going to a prostitute doesn't break the third precept. Please explain if this is correct or not.</strong></p>
<p>Apparently you are not the only person to argue that.</p>
<p>It's a doctrine that seems to me to be far from the ideal I read in <a href="https://www.accesstoinsight.org/tipitaka/an/an04/an04.055.than.html" rel="nofollow noreferrer">Samajivina Sutta: Living in Tune (AN 4.55)</a> -- or <a href="https://buddhism.stackexchange.com/a/7760/254">this answer</a> about an ideal partner.</p>
<p>The question may be a false dichotomy -- arguing that if &quot;sexual conduct&quot; isn't with &quot;one of the 20 types of women&quot; then it is &quot;not misconduct&quot; and therefore &quot;correct&quot; -- I am not sure that's reliable advice.</p>
<p><a href="https://www.accesstoinsight.org/tipitaka/mn/mn.022.than.html" rel="nofollow noreferrer">MN 22</a> for example suggests that advice might be a 'heresy' that's contrary to the Buddha's doctrine. Of course that sutta (as with a lot of Buddhist doctrine) is principally for monks. But maybe the doctrine (the Dhamma in the suttas) is universally true, even if the discipline (the Vinaya) is only undertaken by monks.</p>
<p>But even among lay-people there are &quot;faithful&quot; followers of the Buddha -- your not being a monk allows marriage and so on, I'm not sure it's also meant to encourage seeking sex with prostitutes.</p>
